#pragma once
#include "AI.h"
#include "../SGD Wrappers/SGD_Listener.h"
class CGorbi :
	public CAI
{
public:
	CGorbi();
	~CGorbi();

	virtual void Update(float elapsedTime) override;
	virtual void HandleCollision(const Entity* pOther)	override;

	virtual void HandleEvent(const SGD::Event* pEvent) override;

	// Mutators
	void SetBallHome(SGD::Point ballHome){ m_ptBallHome = ballHome; }
	void SetBall(Entity* ball){ m_pBall = ball; }
	void SetRageTimer(float rageTime){ m_fRageTimer = rageTime; }
	void SetRageMode(bool rageMode){ m_bRageMode = rageMode; }

	// Accessors
	SGD::Point GetBallHome() { return m_ptBallHome; }

private:
	float m_fRageTimer = 6.0f;
	float m_fChaseRadius = 100;
	Entity* m_pBall;
	SGD::Point m_ptBallHome;
	bool m_bRageMode = false;
	float m_fKnockOutTimer = 0;
};

